<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/html5.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/respond.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" href="__PUBLIC__/admin/index.css">
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>角色管理</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span>用户列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <form method="get" action="">
        <div class="text-c">注册时间：
            <input type="text" name="startTime" value="<?php echo isset($display['startTime']) ? $display['startTime'] : ''?>" onfocus="WdatePicker()" id="datemin" class="input-text Wdate" style="width:120px;">
            至
            <input type="text" name="endTime" value="<?php echo isset($display['endTime']) ? $display['endTime'] : ''?>"   onfocus="WdatePicker()" id="datemax" class="input-text Wdate" style="width:120px;">
           支付时间：
            <input type="text" name="payStartTime" value="<?php echo isset($display['payStartTime']) ? $display['payStartTime'] : ''?>" onfocus="WdatePicker()"  class="input-text Wdate" style="width:120px;">
            至
            <input type="text" name="payEndTime" value="<?php echo isset($display['payEndTime']) ? $display['payEndTime'] : ''?>"   onfocus="WdatePicker()"  class="input-text Wdate" style="width:120px;">

            <input type="text" name="searchName" value="<?php echo isset($display['searchName']) ? $display['searchName'] : ''?>" class="input-text" style="width:250px" placeholder="输入订单号、客户账号、姓名" id="" >
            <select class="select-box" style="width: 90px;padding: 5px 5px;" size="1" name="product_id">
                <option value="" >产品</option>
                <?php foreach($productInfo as $v){?>
                <option value="{$v.product_id}" <?php if(isset($display['product_id']) && $display['product_id'] == $v['product_id']) echo 'selected';?> >{$v.name}</option>
                <?php }?>
            </select>
            <select class="select-box" style="width: 80px;padding: 5px 5px;" size="1" name="status">
                <option value="" selected>状态</option>
                <option value="1" <?php if(isset($display['status']) && $display['status'] == 1) echo 'selected';?>>未支付</option>
                <option value="2" <?php if(isset($display['status']) && $display['status'] == 2) echo 'selected';?>>已支付</option>
            </select>
            <button type="submit" class="btn btn-success radius" style="margin-right: 300px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>

        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg">
                <thead>
                <tr>
                    <th scope="col" colspan="15">订单列表</th>
                </tr>
                <tr class="text-c">
                    <th width="40">ID</th>
                    <th width="200">订单号</th>
                    <th width="150">客户ID</th>
                    <th width="120">客户账号</th>
                    <th width="100">姓名</th>
                    <th width="200">产品</th>
                    <th width="150">金额</th>
                    <th width="100">支付类型</th>
                    <th width="100">状态</th>
                    <th width="200">创建时间</th>
                    <th width="200">支付时间</th>
                    <th width="200">生效时间</th>
                    <th width="200">过期时间</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($result['list'] as $v){?>
                <tr class="text-c">
                    <td><?php echo $v['order_id']?></td>
                    <td><?php echo $v['order_no']?></td>
                    <td><?php echo $v['uid']?></td>
                    <td><?php echo $v['username']?></td>
                    <td><?php echo $v['real_name']?></td>
                    <td><?php echo $v['name']?></td>
                    <td><?php echo $v['money']?></td>
                    <td>
                        <?php echo $v['type']==1 ? '支付宝':($v['type']==2 ? '微信':'线下支付')?>
                    </td>
                    <td><?php echo $v['status']==1 ?'未支付':'已支付'?></td>
                    <td><?php echo date('Y-m-d H:i:s',$v['create_time'])?></td>
                    <td><?php echo date('Y-m-d H:i:s',$v['pay_time'])?></td>
                    <td><?php echo empty($v['effective_time']) ? '0':date('Y-m-d H:i:s',$v['effective_time'])?></td>
                    <td><?php echo empty($v['expiration_time']) ? '0':date('Y-m-d H:i:s',$v['expiration_time'])?></td>
                </tr>
                <?php } ?>
                <tr>
                    <td colspan="16" align="right">
                        <div class="pages">
                            {$result.list->render()}
                        </div>
                    </td>
                </tr>
                <?php if(empty($result['list'])):?>
                <tr class="text-l"><td colspan="20">没有找到匹配的记录</td></tr>
                <?php endif;?>
                </tbody>
            </table>
        </div>

    </form>
</div>
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script>

<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery.validation/1.14.0/messages_zh.min.js"></script>
</body>
</html>